package com.zbkj.service.service.order;

import com.zbkj.dal.entity.order.OrderRentSharedRecord;
import com.zbkj.service.model.dto.order.OrderRentRecordCreateDTO;

import java.time.LocalDateTime;
import java.util.List;


public interface OrderRentRecordService {

    /**
     * 创建承享订单记录
     *
     * @param createDTO 创建数据传输对象
     * @return 承享记录号
     */
    String createOrderRentRecord(OrderRentRecordCreateDTO createDTO);

    Boolean activeOrderRentRecordAfterOrderPay(String order);

    List<OrderRentSharedRecord> getAllOrderRentRecordByOrderNo(String order);

    Boolean updateInitialRentOrderStartOnSign(String order);

    Boolean updateOrderRentRecordDate(String rentRecordCode, LocalDateTime time);

    OrderRentSharedRecord getActiveRentRecordByOrderNo(String order);

    List<OrderRentSharedRecord> getActiveRentRecordByRentReturnDate(LocalDateTime time);

    List<OrderRentSharedRecord> getHasExpiredActiveRentRecord(LocalDateTime expired);

    List<OrderRentSharedRecord> getHasOverdueActiveRentRecord(LocalDateTime expired);
}
